package com.lizhenhua.fmmall.mapper;

import com.lizhenhua.fmmall.entity.ShoppingCart;
import com.lizhenhua.fmmall.entity.ShoppingCartVo;
import com.lizhenhua.fmmall.general.GeneralDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
@Repository
public interface ShoppingCartMapper extends GeneralDao<ShoppingCart> {


   List<ShoppingCartVo> selectShopListById(@Param("userId") String uId);
   int updateCartNumByCartId(@Param("cartNum")String cartNum,@Param("cartId") Integer cartId);

 // 根据商品id 查询信息
   List<ShoppingCartVo> selectShopListByCartId(@Param("cids") List<Integer> cids);
}